package com.lorenzogao.latte_core.net.downlaod

import com.lorenzogao.latte_core.net.RestCreator
import com.lorenzogao.latte_core.net.callback.IError
import com.lorenzogao.latte_core.net.callback.IFailure
import com.lorenzogao.latte_core.net.callback.IRequest
import com.lorenzogao.latte_core.net.callback.ISuccess
import okhttp3.RequestBody

/**
 *  create by LorenzoGao
 *  email: 2508719070@qq.com
 *  TIME: 2020-01-08 19:32
 *  description:
 */
 

class DownloadHandler {
    private val PARAMS = RestCreator.PARAMS

    private val REQUEST: IRequest?

    private val SUCCESS: ISuccess?

    private val FAILURE: IFailure?

    private val ERROR: IError?

    private val URL: String

    private val DOWNLOAD_DIR:String?

    private val EXTENSION:String?

    private val NAME:String?

    constructor(request: IRequest?, success: ISuccess?,
        failure: IFailure?,
        error: IError?,
        url: String,
        download_dir: String?,
        extension: String?,
        name: String?) {
        this.REQUEST = request
        this.SUCCESS = success
        this.FAILURE = failure
        this.ERROR = error
        this.URL = url
        this.DOWNLOAD_DIR = download_dir
        this.EXTENSION = extension
        this.NAME = name
    }

    fun handleDonwLoad(){


    }



}